package com.kmproject.haifu.di.module;

import com.jess.arms.di.scope.ActivityScope;
import com.kmproject.haifu.mvp.contract.PersonalHpStoreContract;
import com.kmproject.haifu.mvp.model.PersonalHpStoreModel;

import dagger.Module;
import dagger.Provides;

/**
 *
 */


@Module
public class PersonalHpStoreModule {
    private PersonalHpStoreContract.View view;

    /**
     * 构建PersonalHpStoreModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public PersonalHpStoreModule(PersonalHpStoreContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    PersonalHpStoreContract.View providePersonalHpStoreView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    PersonalHpStoreContract.Model providePersonalHpStoreModel(PersonalHpStoreModel model) {
        return model;
    }
}